package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * @author mycp
 */
@Setter @Getter
public class User extends BaseDomain{
    public static final Integer GENDER_NONE = 0; //保密
    public static final Integer GENDER_MALE = 1; //男
    public static final Integer GENDER_FEMALE = 2; //女

    private String email;// 注册邮箱

    private String nickName;// 昵称

    private String password;// 密码

    private String place;// 住址

    private String headImgUrl;// 头像

    private Integer gender = GENDER_NONE;// 性别

    private String coverImgUrl;// 背景图片

    private String sign;// 个性签名


    public String getGenderName(){
        String msg = "保密";
        if (gender == 1){
            msg = "男";
        } else if (gender == 2){
            msg = "女";
        }
        return msg;
    }

}